/**
 * 
 */
package org.cuatrovientos.operators;

import java.util.Scanner;

/**
 * learn about operators
 * @author david_madurga
 * @version 1.0
 */
public class Operators {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int base = 0;
		int exp = 0;
		int result = 0;
		int a = 0;
		int b = 0;
		int c = 2;
		boolean isgreater =  false;
		
			
		Scanner reader= new Scanner(System.in);
		System.out.print("Introduzca la base ");
		base = reader.nextInt();
		result= base;
		System.out.print("Introduzca el exponente ");
		exp= reader.nextInt();
		for (int i = 1; i< exp; i++)
		{
			result*=base;
		}
		System.out.print("El resultado es " + result);
		a= ++c;
		b= c++;
		isgreater= a < c;
		System.out.print(" b; " + b+ " a: " + a+ " c: " + c + " " +isgreater);
		reader.close();
		
		
		
			
	}

}
